<!DOCTYPE html>
<html lang="zh-cn">
	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <#include "/common/meta.ftl"/>
	    <style>
	    	.myList{
	    		border-left:0px;
	    		border-right:0px;
	    		padding:8px 10px;
	    	}
	    </style>
	    <script type="text/javascript">
	    	$(function(){
	    		$('#dashboard').dashboard({draggable: true});
	    	})
	    	function goLink(url,title,pTitle){
	    		top.setMainIframeUrl('',url, title,pTitle,'');
	    	}
	    </script>
	</head>
	<body style="padding:10px;">
			<div class="panel" style="margin-bottom:10px;">
				<div class="panel-heading">
		          <i class="icon icon-link"></i>
		          <span class="title">快捷菜单</span>
		        </div>
		        <div class="panel-body" style="height:52px;padding:5px;">
		        	<@shiro.hasPermission name="/admin/myInfo">
		        	<button class="btn btn-link btn-lg" onclick="goLink('/admin/myInfo','个人资料','个人中心')" type="button"><i class="icon icon-pencil"></i> 个人资料</button>
		        	</@shiro.hasPermission>
		        	<@shiro.hasPermission name="/admin/organ">
		          		<button class="btn btn-link btn-lg" onclick="goLink('/admin/organ','组织管理','系统管理')" type="button">
		          			<i class="icon icon-group"></i> 组织管理
		          		</button>
		          	</@shiro.hasPermission>
		          	<@shiro.hasPermission name="/admin/userForList">
		          		<button class="btn btn-link btn-lg" onclick="goLink('/admin/userForList','用户管理','系统管理')" type="button">
		          			<i class="icon icon-user"></i> 用户管理
		          		</button>
		          	</@shiro.hasPermission>
		          	<@shiro.hasPermission name="/admin/application">
		          		<button class="btn btn-link btn-lg" onclick="goLink('/admin/application','应用管理','系统管理')" type="button">
		          			<i class="icon icon-sitemap"></i> 应用管理
		          		</button>
		          	</@shiro.hasPermission>
		          	<@shiro.hasPermission name="/admin/role">
		          		<button class="btn btn-link btn-lg" onclick="goLink('/admin/role','角色管理','系统管理')" type="button">
		          			<i class="icon icon-link"></i> 角色管理
		          		</button>
		          	</@shiro.hasPermission>
		        </div>
			</div>
		<div id="dashboard" class="dashboard dashboard-draggable" data-height="300">
  			<section class="row">
			    <div class="col-md-6 col-sm-6">
			      <div class="panel" data-id="2">
			        <div class="panel-heading">
			          <i class="icon icon-laptop"></i>
			          <span class="title">平台信息</span>
			        </div>
			        <div class="panel-body no-padding"  >
			          <div class="list-group" >
							<a class="list-group-item myList" style="border-top:0px;" href="javascript:void(0);">
								<b>开发平台版本：</b>1.0.0
							</a>
							<a class="list-group-item myList" href="javascript:void(0);">
								<b>服务器名称：</b>${dataMap.serverName}
							</a>
							<a class="list-group-item myList" href="javascript:void(0);">
								<b>JDK版本号：</b>${dataMap.jdkVersion}
							</a>
							<a class="list-group-item myList" href="javascript:void(0);">
								<b>JVM内存总量：</b>${dataMap.jvmTotal}
							</a>
							<a class="list-group-item myList" href="javascript:void(0);">
								<b>JVM空闲内存：</b>${dataMap.jvmFree}
							</a>
							<a class="list-group-item myList" href="javascript:void(0);">
								<b>JVM最大内存量：</b>${dataMap.jvmMax}
							</a>
						</div>
			        </div>
			      </div>
			    </div>
			    <div class="col-md-6 col-sm-6">
			      <div class="panel" data-id="1">
			        <div class="panel-heading">
			          <i class="icon icon-server"></i>
			          <span class="title">服务器信息</span>
			        </div>
			        <div class="panel-body no-padding">
			          	<a class="list-group-item myList" style="border-top:0px;" href="javascript:void(0);">
							<b>操作系统名称：</b>${dataMap.serverName}
						</a>
						<a class="list-group-item myList" href="javascript:void(0);">
							<b>操作系统架构：</b>${dataMap.osArch}
						</a>
						<a class="list-group-item myList" href="javascript:void(0);">
							<b>服务器IP：</b>${dataMap.serverIP}
					  	</a>
					  	<a class="list-group-item myList" href="javascript:void(0);">
							<b>服务器MAC：</b>${dataMap.serverMAC}
					  	</a>
					  	<a class="list-group-item myList" href="javascript:void(0);">
							<b>CPU个数：</b>${dataMap.cpuNum}
					  	</a>
			        </div>
			      </div>
			    </div>
  			</section>
		</div>
	</body>
</html>